#ifndef DATA_ACQUISATION_H
#define DATA_ACQUISATION_H

#include <QThread>
#include "warn.h"


class data_acquisation : public QThread
{
    Q_OBJECT
public:
    explicit data_acquisation(QObject *parent = 0);
    ~data_acquisation();
    void run();
      inline void append(uchar count1,uchar count2);
  template <typename T>
  inline void linear(T& m,T value,T n,int i);
signals:

public slots:

private:

      char buf[24];//不要取大于读取读取所需的缓存，否则出现段错误
      uchar count1;
      uchar count2;
      uchar count[2];
      bool first[2];
};

#endif // DATA_ACQUISATION_H
